package pub.xspace.nova.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import pub.xspace.nova.system.domain.SysRole;

/**
 * 角色管理 Mapper接口
 * 
 * @author HeJianrong
 */
@Mapper
public interface SysRoleMapper {

	@Select("select r.* from t_sys_role r left join t_sys_user_role ur on r.id=ur.role_id where ur.user_id=#{userId}")
	List<SysRole> selectRolesByUserId(String userId);
}
